<template>
  <el-card shadow="never" style="border: none">
    <div slot="header">
      <i class="el-icon-ticket" />
      <span>服务记录</span>
    </div>
    <el-timeline>
      <el-timeline-item
        v-for="item in list"
        :key="item.id"
        :timestamp="item.timestamp"
        placement="top"
      >
        {{ item.title }}
      </el-timeline-item>
    </el-timeline>
  </el-card>
</template>
<script>
export default {
  name: 'EventFlow',
  props: {
    id: {
      type: String,
      required: true
    }
  },
  data() {
    return {
      list: [
        { id: 1, timestamp: '2022-12-11', title: '1xx' },
        { id: 2, timestamp: '2022-12-12', title: '2xx' },
        { id: 3, timestamp: '2022-12-13', title: '3xx' },
        { id: 4, timestamp: '2022-12-14', title: '4xx' }
      ]
    }
  }
}
</script>
